package com.dave.gd.core.common.sequence.util;

import com.dave.gd.common.util.spring.ApplicationContextUtil;
import com.dave.gd.core.common.sequence.handler.SeqHandler;

/**
 * Created by linzq on 2014/11/10.
 */
public class SequenceFetchUtils {
    public static Long nextId(String seqName) {
        SeqHandler seqHandler = ApplicationContextUtil.getBean("seqHandler");
        return seqHandler.nextId(seqName);
    }
}
